package com.day12_Thread.BoxDemo;

/**
 * @ClassName: Customer
 * @Author: zw
 * @Description: 出百万拳，行万里路；
 * @Create 2024/3/24-01:09
 * @Version 1.0
 */
public class Customer implements Runnable{
    private Box b;
    public Customer(Box b) {
        this.b = b;
    }

    @Override
    public void run() {
        while (true) {
            b.get();
        }
    }
}
